{% extends "_base.html" %}
{% block content %}
<div class="container">
	<h1>Your result at last!</h1>
	<p>
		<strong>Instructions</strong>
		<br>
		Please enter your registration number and your 4-Digit PIN, as seen at the back of yor scratch card
	</p>
	{% if error %}
	<div class="alert alert-error">
		{{ error }}
	</div>
	{% endif %}
	<form method="post" action="result" class="well">
		<label for='reg_num'>Registration Number</label>
		<input type="text" name='reg_num' class="input-large" placeholder="Registration Number">
		<label for='year'>Year</label>
		<select name='year'>
			<option value="2010">2010</option>
			<option value="2011">2011</option>
			<option value="2012">2012</option>
		</select>
		<label for='pin'>4-Digit PIN</label>
		<input type="password" name='pin' class="input-large" placeholder="4-Digit PIN" >
		<br>
		<button type="submit" class="btn btn-primary btn-large">
			Check Result
		</button>
	</form>
	<div class="alert alert-info">
		Test Values
		<br>
		registration number: {{ regnum }}
		<br>
		pin: {{ pin }}
	</div>
</div>
{% endblock content %}